<header>
    <div class="header">

        <!--- pc端：栏目 --->
        <a href="{{$app_host}}"><img src="{{$style_host}}atw/images/logo.png" class="logo"/></a>
        <nav>
            <a href="{{$app_host}}" @if(empty($cateId))class="this"@endif>Home</a>

            @foreach($cates as $_cate)
                <a href="{{atwUrl('cate', $_cate)}}" @if($cateId==$_cate['id'])class="this"@endif>
                    {{$_cate['en_title']}}
                </a>
            @endforeach


            <div class="search">
                <a href="{{$app_host}}/search.html"><img src="{{$style_host}}atw/images/search.png"/></a>
            </div>
        </nav>

        <!--- 手机端 --->
        <!--- 手机端：展开栏目 --->
        <div class="nav">
            <img src="{{$style_host}}atw/images/nav.png" class="btn"/>
        </div>

        <!--- 手机端:订阅 --->
        <div class="scribe">
            <a href="{{$app_host}}/email.html"><img src="{{$style_host}}atw/images/scribe.png"/></a>
        </div>

        <!--- 手机端：栏目 --->
        <div id="menu">
            <ul>
                <li><a href="{{$app_host}}">Home</a></li>
                @foreach($cates as $_cate)
                    <li><a href="{{atwUrl('cate', $_cate)}}">{{$_cate['en_title']}}</a></li>
                @endforeach
            </ul>
        </div>
    </div>
</header>
